print-editor: Bring back the menubar
authorMatthias Clasen <mclasen@redhat.com>
Mon, 11 May 2020 16:55:15 +0000 (12:55 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 11 May 2020 16:55:15 +0000 (12:55 -0400)
This was the one place where we relied on
the menubar fallback in GtkApplicationWindow.

So turn it on explicitly.

tests/print-editor.c

index 8b90af1efedcba475bee800de74ab946080efd96..11b8f9b061b8ac98f52a7a896d5131ef74bc6aca 100644 (file)
@@ -746,6 +746,7 @@ activate (GApplication *app)
   main_window = gtk_application_window_new (GTK_APPLICATION (app));
   gtk_window_set_icon_name (GTK_WINDOW (main_window), "text-editor");
   gtk_window_set_default_size (GTK_WINDOW (main_window), 400, 600);
+  gtk_application_window_set_show_menubar (GTK_APPLICATION_WINDOW (main_window), TRUE);
   update_title (GTK_WINDOW (main_window));
 
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);